package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StudentquestionMapper;
import com.ruoyi.system.domain.Studentquestion;
import com.ruoyi.system.service.IStudentquestionService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-14
 */
@Service
public class StudentquestionServiceImpl implements IStudentquestionService 
{
    @Autowired
    private StudentquestionMapper studentquestionMapper;

    @Override
    public int updateStudentQuestionTeacher(Long questionId, Long teacherId) {
        return studentquestionMapper.updateStudentQuestionTeacher(questionId,teacherId);
    }

    /**
     * 查询【请填写功能名称】
     * 
     * @param questionId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public Studentquestion selectStudentquestionByQuestionId(Long questionId)
    {
        return studentquestionMapper.selectStudentquestionByQuestionId(questionId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param studentquestion 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<Studentquestion> selectStudentquestionList(Studentquestion studentquestion)
    {
        return studentquestionMapper.selectStudentquestionList(studentquestion);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param studentquestion 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertStudentquestion(Studentquestion studentquestion)
    {
        return studentquestionMapper.insertStudentquestion(studentquestion);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param studentquestion 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateStudentquestion(Studentquestion studentquestion)
    {
        return studentquestionMapper.updateStudentquestion(studentquestion);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param questionIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteStudentquestionByQuestionIds(Long[] questionIds)
    {
        return studentquestionMapper.deleteStudentquestionByQuestionIds(questionIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param questionId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteStudentquestionByQuestionId(Long questionId)
    {
        return studentquestionMapper.deleteStudentquestionByQuestionId(questionId);
    }
}
